<?php

namespace app\api\controller\company;
use app\shop\service\company\Study as StudyService;
use app\shop\service\company\WorkVideo;
/**
 * 团队风采
 */
class Study
{

    public function lists(StudyService $StudyService)
    {
        $data = input();
        return $StudyService->lists($data);
    }

    public function info(StudyService $StudyService)
    {
        $id = input('id');
        return $StudyService->info($id);
    }

    public function report(StudyService $StudyService)
    {
        $data = input();
        $data['user_id'] = request()->user_id;
        return $StudyService->reports($data);
    }

    public function save(StudyService $StudyService)
    {
        $data = input();
        $data['add_user'] = request()->user_id;
        return $StudyService->staffSave($data);
    }

    public function logs(StudyService $StudyService)
    {
        $data = input();
        return $StudyService->staffLogs($data);
    }

    public function is_manager(StudyService $StudyService)
    {
        $examine_id = input('examine_id');
        return $StudyService->is_manager($examine_id);
    }
    public function edit(StudyService $StudyService)
    {
        $data = input();
        $data['manager'] = request()->user_id;
        return $StudyService->edit($data);
    }

    public function add(StudyService $StudyService)
    {
        $data = input();
        $data['user_id'] = request()->user_id;
        return $StudyService->add($data);
    }
    public function my_share(StudyService $StudyService)
    {
        $data = input();
        $data['user_id'] = request()->user_id;
        return $StudyService->my_share($data);
    }
    public function reportInfo(StudyService $StudyService)
    {
        $id = input('id');
        return $StudyService->reportInfo($id);
    }

    public function work_video_list(WorkVideo $WorkVideo)
    {
        $data = input();
        return $WorkVideo->lists($data);
    }

    public function work_video_info(WorkVideo $WorkVideo)
    {
        $id = input('id');
        return $WorkVideo->info($id);
    }
}